<form class="admin-table-filter form-inline">
  <div class="form-group">
    <div class="input-group">
      <input type="text" name="query" value="<%%= @query %>" class="form-control input-sm" placeholder="<%%# TODO: query placeholder %>">
      <span class="input-group-btn">
        <button class="btn btn-white btn-sm" type="submit" id="search"><i class="fa fa-search"></i> 搜索</button>
        <%%= link_to '重置', <%= prefixed_index_helper %>_path, class: 'btn btn-sm btn-white' %>
      </span>
    </div>
  </div>

  <%- if active_enabled? %>
  <div class="form-group">
    <label class="control-label inline margin-right-5">状态</label>
    <div class="inline">
      <%%= radio_btn_group('active', [['激活', ''], ['暂停', 'false']], params[:active] ) %>
    </div>
  </div>
  <%- end %>

  <%- if recommend_enabled? %>
  <div class="form-group">
    <label class="control-label inline margin-right-5">推荐</label>
    <div class="inline">
      <%%= radio_btn_group('recommended', [['全部', ''], ['推荐', 'true'], ['未推荐', 'false']], params[:recommended] ) %>
    </div>
  </div>
  <%- end %>
</form>
